package com.yuteng.video.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Data
@Document(indexName = "search",type = "video")
public class Search {
    @Id
    private String id;
    @Field(index = true)
    private String title;//标题
    @Field(index = true)
    private String description;//描述
    @Field(index = true)
    private String urlPic;//图片url
    @Field(index = true)
    private String type;//类型
//    @Field(index = true)
//    private String like;
}
